package inv.stask.logic;

import java.io.File;

import inv.stask.beans.Configuration;

public class ConfigurationUtil extends WriterUtil {
	
	protected MyProperties prop		= new MyProperties();
	protected String filename		= prop.getHomeDir() + File.separator + "configuration.ser";
	protected String filenameLock	= prop.getHomeDir() + File.separator + "configuration.ser.lock";
	
	@Override
	protected String getFilename() {
		return filename;
	}
	
	@Override
	protected String getLockFilename() {
		return filenameLock;
	}
	
	
	public void write(Configuration config) {
		super.write(config);
	}
	
	@Override
	public Configuration read() {
		return (Configuration)super.read();
	}
	
}
